<%
    require '/var/www/html/aboutyou-ruby-sdk/AboutYou-SDK/lib/aboutyou-sdk.rb'

    ay = AY.new(100, '3ed93394c2b5ebd12c104b177b928ad0')
%>
    <%= '<p>Produkte:</p>' %>
<%
    autocompleteResult = ay.fetch_autocomplete('hos', 10, [AboutYou::SDK::Model::Autocomplete::TYPE_PRODUCTS])
    autocompleteResult.products.each do |product|
%>
        <%= '<p>' + product.name + '</p>' %>
<%
    end
%>
    <%= '<p>Kategorien</p>' %>
<%
    autocompleteResult = ay.fetch_autocomplete('fra', 10, [AboutYou::SDK::Model::Autocomplete::TYPE_CATEGORIES])
    autocompleteResult.categories.each do |category|
%>
        <%= '<p>' + category.name + '</p>' %>
<%
    end
%>
    <%= '<p>Marken</p>' %>
<%
    autocompleteResult = ay.fetch_autocomplete('tam', 10, [AboutYou::SDK::Model::Autocomplete::TYPE_BRANDS])
    autocompleteResult.brands.each do |brand|
%>
        <%= '<p>' + brand.name + '</p>' %>
<%
    end
%>